﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace miniGameCollection
{
    public class MinePosition
    {
        private int x;

        public int X
        {
            get { return x; }
            set { x = value; }
        }

        private int y;

        public int Y
        {
            get { return y; }
            set { y = value; }
        }

        public MinePosition() { }

        public MinePosition(int a, int b)
        {
            this.x = a;
            this.y = b;
        }

        public override bool Equals(object obj)
        {
            MinePosition objCompare = obj as MinePosition;
            if (objCompare == null)
            {
                return false;
            }
            return x == objCompare.X && y == objCompare.Y;
        }
    }
}
